package com.cy.ppj.model.ao.user;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;

import com.cy.ppj.comm.constant.RegexContants;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 添加业务员AO
 * 
 * @author: tanyilin
 * @create: 2018年8月6日 下午2:39:53
 */
@Data
@ApiModel("新增业务员参数字段")
public class SalesAddAO {

	@ApiModelProperty(value = "手机号码", required = true)
	@NotEmpty(message = "手机号码不能为空")
	@Pattern(regexp = RegexContants.MOBILE, message = "手机号码格式不正确")
	private String mobile;
	
	@ApiModelProperty(value = "昵称", required = true)
	@NotEmpty(message = "昵称不能为空")
	private String nickName;
	
}
